#include <stdio.h>

int main() {

    int n, i;

    printf("Enter number of elements: ");
    scanf("%d", &n);
    int a[n];

    for (i = 0; i < n; i++)
        printf("Enter element %d: ", i + 1),scanf("%d", &a[i]);

    for (i = n - 1; i >= 0; i--)
        printf("%d ", a[i]);

    printf("\n");
    return 0;
}
